﻿@{
    ViewBag.Title = "DocList";
    Layout = null;
    string docClsName = ViewData["docClsName"] == null ? "最新信息" : ViewData["docClsName"].ToString();
}
@using ElingOA6_DSJCJ.Models;
@using Webdiyer.WebControls.Mvc
@model PagedList<ElingOA6_DSJCJ.Models.DocumentGridModel>
<!DOCTYPE html>

<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=7" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>@ElingOA6_DSJCJ.Common.GlobalConstant.CONSTRING_SYSTITLE</title>

    <link href="@Url.Content("~/Content/framepage.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/style.css")" rel="stylesheet" type="text/css" />

    <script src="@Url.Content("~/Scripts/jquery.min.js")" type="text/javascript"></script>

    <script>

        function iframeAutoFit() {
            var ex;
            try {
                if (window != parent) {
                    var a = parent.document.getElementsByTagName("IFRAME");
                    for (var i = 0; i < a.length; i++) {
                        if (a[i].contentWindow == window) {
                            var h1 = 0, h2 = 0;
                            if (document.documentElement && document.documentElement.scrollHeight) {
                                h1 = document.documentElement.scrollHeight;
                            }
                            if (document.body) h2 = document.body.scrollHeight;
                            var h = Math.max(h1, h2);
                            if (window.ActiveXObject) { h += 4; }
                            else { h += 4; }
                            a[i].style.height = h + "px";
                            window.removeEventListener('resize', iframeAutoFit, false); //兼容谷歌浏览器时要去掉RISZE监听
                        }
                    }
                }
            }
            catch (ex) { }
        }
    
    </script>
</head>
<body onload="iframeAutoFit()">
    <div class="notice">
        <div class="notice-title">
            <span class="float-right padding-right">
                <a href="/Index/DocumentIndex?keyName=doc_tzgg&keyClass=04" target="_blank">更多</a>
            </span>
            <h3>@docClsName</h3>
        </div>
        <div class="notice-content">
            <ul>
                @foreach (DocumentGridModel documentModel in Model as List<DocumentGridModel>)
                {
                    <li><span>@documentModel.FPubDate.ToString("MM-dd")</span><a href="/Index/DocView?docId=@documentModel.FDocId" target="_blank" title="@documentModel.FTitle">@documentModel.FTitle</a></li>
                }
            </ul>
            <table width="100%" cellspacing="0" cellpadding="0" height="24">
                <tr>
                    <td  padding:0 10px;>
                        <span style="float:right; display:block; padding-right:10px;">
                        @Html.Pager(Model, new PagerOptions { ContainerTagName = "span", PageIndexParameterName = "id", AlwaysShowFirstLastPageNumber = false, HorizontalAlign = "right", FirstPageText = "首页", LastPageText = "末页", ShowPrevNext=false, ShowFirstLast=false,ShowMorePagerItems=false, MaxPageIndex=10 }, new { style = "" })
                        </span>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</body>
</html>
